<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"/>
    <meta http-equiv="X-UA-Compatible" content="ie=edge"/>
    <title>FCS智能影像存储系统</title>
    <link rel="stylesheet" th:href="@{lib/viewer/css/main.css}"/>
    <link rel="stylesheet" th:href="@{lib/viewer/css/viewer.css}"/>
    <link rel="stylesheet" th:href="@{lib/bootstrap/css/bootstrap.min.css}"/>
    <link rel="stylesheet" th:href="@{css/style.css}"/>
    <script th:src="@{lib/jquery-3.2.1.min.js}"></script>
    <script th:src="@{lib/bootstrap/js/bootstrap.min.js}"></script>

    <style type="text/css">
        html, body {
            height: 100%;
        }

        body {
            display: -ms-flexbox;
            display: -webkit-box;
            display: flex;
            -ms-flex-align: center;
            -ms-flex-pack: center;
            -webkit-box-align: center;
            align-items: center;
            -webkit-box-pack: center;
            justify-content: center;
            padding-top: 40px;
            padding-bottom: 40px;
            font-size: 14px;
            position: absolute;
            overflow: hidden;
            z-index: -10;
            background: url() no-repeat center center;
            width: 100%;
            height: 100%;
            background-size: cover;
            right: 0px;
            top: 0px;
            bottom: 0px;
            left: 0px;
            background-image: url('../images/login_bg.jpg');
        }

        .form-signin {
            width: 100%;
            max-width: 330px;
            padding: 15px;
            margin: 0 auto;
        }

        .form-signin .checkbox {
            font-weight: 400;
        }

        .form-signin .form-control {
            position: relative;
            box-sizing: border-box;
            height: auto;
            padding: 10px;
            font-size: 16px;
        }

        .form-signin .form-control:focus {
            z-index: 2;
        }

        .form-signin input[type="email"] {
            margin-bottom: -1px;
            border-bottom-right-radius: 0;
            border-bottom-left-radius: 0;
        }

        .form-signin input[type="password"] {
            margin-bottom: 10px;
            border-top-left-radius: 0;
            border-top-right-radius: 0;
        }

        .loginbox {
            box-shadow: 0px 20px 60px rgba(0, 0, 0, 0.4), 0px 0px 150px rgba(0, 0, 0, 0.4);
            width: 428px;
            border-radius: 4px;
            position: absolute;
            top: 46%;
            left: 50%;
            margin-top: -209px;
            margin-left: -214px;
            z-index: 100;
            /* border: solid 1px red;
            width: 428px;*/
            padding: 30px 60px 30px 60px;
        }

        .color-w {
            color: #fff;
        }
    </style>
</head>
<body class="text-center">
<form class="form-signin" th:action="@{/login}" method="post">
    <div class="loginbox">
        <h1 class="h3 mb-3 font-weight-normal color-w">玉衡智能存储系统</h1>
        <br/>
        <label for="instNo" class="sr-only">机构号</label>
        <input type="text" id="instNo" name="instNo" class="form-control" placeholder="机构号"/>
        <label for="userName" class="sr-only">用户名</label>
        <input type="text" id="userName" name="userName"
               class="form-control" placeholder="用户名"/>
        <label for="inputPassword" class="sr-only">密码</label>
        <input type="password" id="inputPassword" name="inputPassword" class="form-control" placeholder="密码"/>
        <div class="checkbox mb-3">
            <label class="color-w"> <input type="checkbox" value="remember-me"/> 记住用户名</label>
        </div>
        <button class="btn btn-lg btn-primary btn-block" type="submit">登陆</button>
    </div>
</form>
</body>
</html>